<template>
  <div class="project-content" style="width: 100%;overflow:hidden;">
    <el-button class="backBtn" type="primary" size="small" @click="$router.push('/index/projectmange')">返回</el-button>
    <p style="text-align: center;font-weight: bold;margin-top: 30px;font-size: 30px;">基本信息</p>
    <el-descriptions style="margin-top: 40px;" :column="3" size="medium" border>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-user"></i>
        项目id
        </template>
        {{projectInfo.id}}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label">
          <i class="el-icon-mobile-phone"></i>
          项目名
        </template>
        {{ projectInfo.name }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label">
          <i class="el-icon-location-outline"></i>
          创建时间
        </template>
        {{projectInfo.date}}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label">
          <i class="el-icon-tickets"></i>
          项目描述
        </template>
        {{ projectInfo.remark }}
      </el-descriptions-item>
    </el-descriptions>
  </div>
</template>

<script>
export default {
  props: ['projectInfo']
}
</script>

<style scoped lang="less">




.project-content {
  box-sizing: border-box;
  position: absolute;
  left: 200px;
  top: 0;
  display: inline-block;
  width: 900px;
  padding: 0 20px;
  height: 90vh;
  .backBtn {
    position: absolute;
    right: 30px;
    top: 30px;
  }
  .project-info {
    margin-top: 20px;
    width: 300px;
    font-size: 20px;
    margin-left: 30px;
  }
}
//判断是否是移动端
@media screen and (max-width: 768px) {
  .project-content {
    position: absolute;
    left: 20vw;
    top: 0;
    width: 100%;
    height: 100vh;
    padding: 0;
    .backBtn {
      position: absolute;
      left: 30px;
      top: 30px;
      width: 80px;
    }
    .project-info {
      margin-top: 20px;
      width: 300px;
      font-size: 20px;
      margin-left: 30px;
    }
  }
}
</style>
